const getPhone = () => {
	var userinfo = {
		phone: null
	}
	switch (plus.os.name) {
		case "Android":
			// 程序全局环境对象  
			var mainActivity = plus.android.runtimeMainActivity();
			var Context = new plus.android.importClass("android.content.Context");
			var TelephonyManager = new plus.android.importClass("android.telephony.TelephonyManager");
			var tm = mainActivity.getSystemService(Context.TELEPHONY_SERVICE);

			userinfo.phone = tm.getLine1Number();
			break;
		case "iOS":
			break;
		default:
			break;
	}
	return userinfo
}
export {
	getPhone
}
